package com.example.fullexample.inlet.subscriber;

import com.example.fullexample.service.command.DeleteStudentCompletedEvent;
import com.example.fullexample.util.Subscriber;
import com.google.common.eventbus.Subscribe;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Subscriber
public class DeleteStudentCompletedEventSubscriber {

    @Subscribe
    public void receive(DeleteStudentCompletedEvent event) {
        System.out.println("id 为[" + event.getStudentId()+ "]的学生已经被删除");
        System.out.println("接下来要 ...");

//        XxxCommand command = new XxxCommand();
//        command.execute();
    }
}
